package com.ksd.modules.note.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.note.entity.AdminNoteCategory;
import com.ksd.modules.note.po.AdminNoteCategorySavePO;
import com.ksd.modules.note.po.AdminNoteCategorySearchPO;
import com.ksd.modules.note.vo.AdminNoteCategoryVo;

import java.util.List;

public interface IAdminNoteCategoryService extends IBaseService<AdminNoteCategory> {


    /**
     * 查询主板块
     * @return
     */
    List<AdminNoteCategoryVo> findAdminNoteCategoryRoot();

    /**
     * 查询板块信息
     * @param adminNoteCategorySearchPO
     * @return
     */
    List<AdminNoteCategoryVo> findAdminNoteCategory(AdminNoteCategorySearchPO adminNoteCategorySearchPO);

    /**
     * 删除板块
     * @param id
     * @return
     */
    boolean deleteAdminNoteCategoryById(Long id);

    /**
     * 获取板块明细
     * @param id
     * @return
     */
    AdminNoteCategoryVo getAdminNoteCategoryById(Long id);

    /**
     * 保存和修改板块
     * @param adminNoteCategorySavePO
     * @return
     */
    boolean saveUpdateAdminNoteCategory(AdminNoteCategorySavePO adminNoteCategorySavePO);
}
